package com.rzn.reading.mapper;

import com.rzn.reading.entity.Note;
import com.rzn.reading.model.dto.note.NoteDetailDTO;
import com.rzn.reading.model.dto.note.NoteItemDTO;
import com.rzn.reading.model.dto.note.QueryNotePageParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoteMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Note record);

    Note selectByPrimaryKey(Integer id);

    NoteDetailDTO getNoteDetail(Integer id);

    List<Note> selectAll();

    int updateByPrimaryKey(Note record);

    Integer deleteByLiteratureId(Integer literatureId);

    List<NoteDetailDTO> selectItemByPage(QueryNotePageParam param);

    Integer updateNoteStage(Integer id,Integer state);
}